/*
 * @Descripttion: 
 * @version: 
 * @Author: sueRimn
 * @Date: 2022-08-19 10:51:04
 * @LastEditors: sueRimn
 * @LastEditTime: 2022-09-29 15:56:07
 */


const state = {
  userInfo: null,
  token: "",
}
const mutations = {
  setUserInfo(state, userInfo) {
    state.userInfo = userInfo;
  },
  setToken(state, token) {
    state.token = token;
  }
}
const actions = {
  setUserInfo({ commit, state }, userInfo) {
    commit("setUserInfo", userInfo);
  },
  setToken({ commit, state }, token) {
    commit("setToken", token);
  }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}